import request from '@/utils/request'

// 查询计划订单联系列表
export function listReleased(query) {
  return request({
    url: '/mes/released/list',
    method: 'get',
    params: query
  })
}

// 查询计划订单联系详细
export function getReleased(id) {
  return request({
    url: '/mes/released/' + id,
    method: 'get'
  })
}

// 新增计划订单联系
export function addReleased(data) {
  return request({
    url: '/mes/released',
    method: 'post',
    data: data
  })
}

// 修改计划订单联系
export function updateReleased(data) {
  return request({
    url: '/mes/released',
    method: 'put',
    data: data
  })
}

// 删除计划订单联系
export function delReleased(id) {
  return request({
    url: '/mes/released/' + id,
    method: 'delete'
  })
}
